package common;

public class Point {
	private Integer xValue;
	private Integer yValue;

	public Point(Integer value, Integer valye) {
		super();
		xValue = value;
		yValue = valye;
	}
	
	public Point() {
		xValue = new Integer(-1);
		yValue = new Integer(-1);
	}

	/**
	 * @param xValue the xValue to set
	 */
	public void setXValue(Integer xValue) {
		this.xValue = xValue;
	}
	/**
	 * @return the xValue
	 */
	public Integer getXValue() {
		return xValue;
	}
	/**
	 * @param yValye the yValye to set
	 */
	public void setYValue(Integer yValue) {
		this.yValue = yValue;
	}
	/**
	 * @return the yValye
	 */
	public Integer getYValue() {
		return yValue;
	}

	public String toString() {
		return ("("+xValue+","+yValue+")");
	}
	
	public Boolean isEqual(Point p2){
		return (this.xValue == p2.getXValue() && this.yValue == p2.getYValue());
	}
}
